<template>
	<div v-if="item">
		<view>
			<rich-text :nodes="[item]" :space="item.name === 'table' ? false : space" />
		</view>
	</div>
</template>

<script>
	export default {
		props: {
			/**
			 * 内容
			 */
			item: {
				type: Object,
				default: null,
			},
			space: {
				type: String,
				optionalTypes: [Boolean],
				value: false,
			},
		},
	};
</script>

<style lang="scss" scoped>
	/deep/ view, text {
		line-height: 1.5em;
	}
</style>
